package org.zk.dubbo_provider.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import org.zk.dubbo_provider.dao.AdminMapper;
import org.zk.entity.Admin;
import org.zk.service.AdminService;
import com.alibaba.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
@Service(timeout = 10000)
public class AdminServiceImpl  implements AdminService {

    @Resource
    private AdminMapper adminMapper;

    @Override
    public List<Admin> getAllAdmin() {
        return adminMapper.getAllAdmin();
    }
}
